package org.hxyjs.entity;

import java.util.ArrayList;
import java.util.List;

public class AdvertisingrecordExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public AdvertisingrecordExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andAdrdnoIsNull() {
            addCriterion("adrdno is null");
            return (Criteria) this;
        }

        public Criteria andAdrdnoIsNotNull() {
            addCriterion("adrdno is not null");
            return (Criteria) this;
        }

        public Criteria andAdrdnoEqualTo(String value) {
            addCriterion("adrdno =", value, "adrdno");
            return (Criteria) this;
        }

        public Criteria andAdrdnoNotEqualTo(String value) {
            addCriterion("adrdno <>", value, "adrdno");
            return (Criteria) this;
        }

        public Criteria andAdrdnoGreaterThan(String value) {
            addCriterion("adrdno >", value, "adrdno");
            return (Criteria) this;
        }

        public Criteria andAdrdnoGreaterThanOrEqualTo(String value) {
            addCriterion("adrdno >=", value, "adrdno");
            return (Criteria) this;
        }

        public Criteria andAdrdnoLessThan(String value) {
            addCriterion("adrdno <", value, "adrdno");
            return (Criteria) this;
        }

        public Criteria andAdrdnoLessThanOrEqualTo(String value) {
            addCriterion("adrdno <=", value, "adrdno");
            return (Criteria) this;
        }

        public Criteria andAdrdnoLike(String value) {
            addCriterion("adrdno like", value, "adrdno");
            return (Criteria) this;
        }

        public Criteria andAdrdnoNotLike(String value) {
            addCriterion("adrdno not like", value, "adrdno");
            return (Criteria) this;
        }

        public Criteria andAdrdnoIn(List<String> values) {
            addCriterion("adrdno in", values, "adrdno");
            return (Criteria) this;
        }

        public Criteria andAdrdnoNotIn(List<String> values) {
            addCriterion("adrdno not in", values, "adrdno");
            return (Criteria) this;
        }

        public Criteria andAdrdnoBetween(String value1, String value2) {
            addCriterion("adrdno between", value1, value2, "adrdno");
            return (Criteria) this;
        }

        public Criteria andAdrdnoNotBetween(String value1, String value2) {
            addCriterion("adrdno not between", value1, value2, "adrdno");
            return (Criteria) this;
        }

        public Criteria andAdnoIsNull() {
            addCriterion("adno is null");
            return (Criteria) this;
        }

        public Criteria andAdnoIsNotNull() {
            addCriterion("adno is not null");
            return (Criteria) this;
        }

        public Criteria andAdnoEqualTo(String value) {
            addCriterion("adno =", value, "adno");
            return (Criteria) this;
        }

        public Criteria andAdnoNotEqualTo(String value) {
            addCriterion("adno <>", value, "adno");
            return (Criteria) this;
        }

        public Criteria andAdnoGreaterThan(String value) {
            addCriterion("adno >", value, "adno");
            return (Criteria) this;
        }

        public Criteria andAdnoGreaterThanOrEqualTo(String value) {
            addCriterion("adno >=", value, "adno");
            return (Criteria) this;
        }

        public Criteria andAdnoLessThan(String value) {
            addCriterion("adno <", value, "adno");
            return (Criteria) this;
        }

        public Criteria andAdnoLessThanOrEqualTo(String value) {
            addCriterion("adno <=", value, "adno");
            return (Criteria) this;
        }

        public Criteria andAdnoLike(String value) {
            addCriterion("adno like", value, "adno");
            return (Criteria) this;
        }

        public Criteria andAdnoNotLike(String value) {
            addCriterion("adno not like", value, "adno");
            return (Criteria) this;
        }

        public Criteria andAdnoIn(List<String> values) {
            addCriterion("adno in", values, "adno");
            return (Criteria) this;
        }

        public Criteria andAdnoNotIn(List<String> values) {
            addCriterion("adno not in", values, "adno");
            return (Criteria) this;
        }

        public Criteria andAdnoBetween(String value1, String value2) {
            addCriterion("adno between", value1, value2, "adno");
            return (Criteria) this;
        }

        public Criteria andAdnoNotBetween(String value1, String value2) {
            addCriterion("adno not between", value1, value2, "adno");
            return (Criteria) this;
        }

        public Criteria andAdvrnoIsNull() {
            addCriterion("advrno is null");
            return (Criteria) this;
        }

        public Criteria andAdvrnoIsNotNull() {
            addCriterion("advrno is not null");
            return (Criteria) this;
        }

        public Criteria andAdvrnoEqualTo(String value) {
            addCriterion("advrno =", value, "advrno");
            return (Criteria) this;
        }

        public Criteria andAdvrnoNotEqualTo(String value) {
            addCriterion("advrno <>", value, "advrno");
            return (Criteria) this;
        }

        public Criteria andAdvrnoGreaterThan(String value) {
            addCriterion("advrno >", value, "advrno");
            return (Criteria) this;
        }

        public Criteria andAdvrnoGreaterThanOrEqualTo(String value) {
            addCriterion("advrno >=", value, "advrno");
            return (Criteria) this;
        }

        public Criteria andAdvrnoLessThan(String value) {
            addCriterion("advrno <", value, "advrno");
            return (Criteria) this;
        }

        public Criteria andAdvrnoLessThanOrEqualTo(String value) {
            addCriterion("advrno <=", value, "advrno");
            return (Criteria) this;
        }

        public Criteria andAdvrnoLike(String value) {
            addCriterion("advrno like", value, "advrno");
            return (Criteria) this;
        }

        public Criteria andAdvrnoNotLike(String value) {
            addCriterion("advrno not like", value, "advrno");
            return (Criteria) this;
        }

        public Criteria andAdvrnoIn(List<String> values) {
            addCriterion("advrno in", values, "advrno");
            return (Criteria) this;
        }

        public Criteria andAdvrnoNotIn(List<String> values) {
            addCriterion("advrno not in", values, "advrno");
            return (Criteria) this;
        }

        public Criteria andAdvrnoBetween(String value1, String value2) {
            addCriterion("advrno between", value1, value2, "advrno");
            return (Criteria) this;
        }

        public Criteria andAdvrnoNotBetween(String value1, String value2) {
            addCriterion("advrno not between", value1, value2, "advrno");
            return (Criteria) this;
        }

        public Criteria andAdrdstateIsNull() {
            addCriterion("adrdState is null");
            return (Criteria) this;
        }

        public Criteria andAdrdstateIsNotNull() {
            addCriterion("adrdState is not null");
            return (Criteria) this;
        }

        public Criteria andAdrdstateEqualTo(Integer value) {
            addCriterion("adrdState =", value, "adrdstate");
            return (Criteria) this;
        }

        public Criteria andAdrdstateNotEqualTo(Integer value) {
            addCriterion("adrdState <>", value, "adrdstate");
            return (Criteria) this;
        }

        public Criteria andAdrdstateGreaterThan(Integer value) {
            addCriterion("adrdState >", value, "adrdstate");
            return (Criteria) this;
        }

        public Criteria andAdrdstateGreaterThanOrEqualTo(Integer value) {
            addCriterion("adrdState >=", value, "adrdstate");
            return (Criteria) this;
        }

        public Criteria andAdrdstateLessThan(Integer value) {
            addCriterion("adrdState <", value, "adrdstate");
            return (Criteria) this;
        }

        public Criteria andAdrdstateLessThanOrEqualTo(Integer value) {
            addCriterion("adrdState <=", value, "adrdstate");
            return (Criteria) this;
        }

        public Criteria andAdrdstateIn(List<Integer> values) {
            addCriterion("adrdState in", values, "adrdstate");
            return (Criteria) this;
        }

        public Criteria andAdrdstateNotIn(List<Integer> values) {
            addCriterion("adrdState not in", values, "adrdstate");
            return (Criteria) this;
        }

        public Criteria andAdrdstateBetween(Integer value1, Integer value2) {
            addCriterion("adrdState between", value1, value2, "adrdstate");
            return (Criteria) this;
        }

        public Criteria andAdrdstateNotBetween(Integer value1, Integer value2) {
            addCriterion("adrdState not between", value1, value2, "adrdstate");
            return (Criteria) this;
        }

        public Criteria andAdrdnumberIsNull() {
            addCriterion("adrdNumber is null");
            return (Criteria) this;
        }

        public Criteria andAdrdnumberIsNotNull() {
            addCriterion("adrdNumber is not null");
            return (Criteria) this;
        }

        public Criteria andAdrdnumberEqualTo(String value) {
            addCriterion("adrdNumber =", value, "adrdnumber");
            return (Criteria) this;
        }

        public Criteria andAdrdnumberNotEqualTo(String value) {
            addCriterion("adrdNumber <>", value, "adrdnumber");
            return (Criteria) this;
        }

        public Criteria andAdrdnumberGreaterThan(String value) {
            addCriterion("adrdNumber >", value, "adrdnumber");
            return (Criteria) this;
        }

        public Criteria andAdrdnumberGreaterThanOrEqualTo(String value) {
            addCriterion("adrdNumber >=", value, "adrdnumber");
            return (Criteria) this;
        }

        public Criteria andAdrdnumberLessThan(String value) {
            addCriterion("adrdNumber <", value, "adrdnumber");
            return (Criteria) this;
        }

        public Criteria andAdrdnumberLessThanOrEqualTo(String value) {
            addCriterion("adrdNumber <=", value, "adrdnumber");
            return (Criteria) this;
        }

        public Criteria andAdrdnumberLike(String value) {
            addCriterion("adrdNumber like", value, "adrdnumber");
            return (Criteria) this;
        }

        public Criteria andAdrdnumberNotLike(String value) {
            addCriterion("adrdNumber not like", value, "adrdnumber");
            return (Criteria) this;
        }

        public Criteria andAdrdnumberIn(List<String> values) {
            addCriterion("adrdNumber in", values, "adrdnumber");
            return (Criteria) this;
        }

        public Criteria andAdrdnumberNotIn(List<String> values) {
            addCriterion("adrdNumber not in", values, "adrdnumber");
            return (Criteria) this;
        }

        public Criteria andAdrdnumberBetween(String value1, String value2) {
            addCriterion("adrdNumber between", value1, value2, "adrdnumber");
            return (Criteria) this;
        }

        public Criteria andAdrdnumberNotBetween(String value1, String value2) {
            addCriterion("adrdNumber not between", value1, value2, "adrdnumber");
            return (Criteria) this;
        }

        public Criteria andAdrdreleasetimeIsNull() {
            addCriterion("adrdReleaseTime is null");
            return (Criteria) this;
        }

        public Criteria andAdrdreleasetimeIsNotNull() {
            addCriterion("adrdReleaseTime is not null");
            return (Criteria) this;
        }

        public Criteria andAdrdreleasetimeEqualTo(String value) {
            addCriterion("adrdReleaseTime =", value, "adrdreleasetime");
            return (Criteria) this;
        }

        public Criteria andAdrdreleasetimeNotEqualTo(String value) {
            addCriterion("adrdReleaseTime <>", value, "adrdreleasetime");
            return (Criteria) this;
        }

        public Criteria andAdrdreleasetimeGreaterThan(String value) {
            addCriterion("adrdReleaseTime >", value, "adrdreleasetime");
            return (Criteria) this;
        }

        public Criteria andAdrdreleasetimeGreaterThanOrEqualTo(String value) {
            addCriterion("adrdReleaseTime >=", value, "adrdreleasetime");
            return (Criteria) this;
        }

        public Criteria andAdrdreleasetimeLessThan(String value) {
            addCriterion("adrdReleaseTime <", value, "adrdreleasetime");
            return (Criteria) this;
        }

        public Criteria andAdrdreleasetimeLessThanOrEqualTo(String value) {
            addCriterion("adrdReleaseTime <=", value, "adrdreleasetime");
            return (Criteria) this;
        }

        public Criteria andAdrdreleasetimeLike(String value) {
            addCriterion("adrdReleaseTime like", value, "adrdreleasetime");
            return (Criteria) this;
        }

        public Criteria andAdrdreleasetimeNotLike(String value) {
            addCriterion("adrdReleaseTime not like", value, "adrdreleasetime");
            return (Criteria) this;
        }

        public Criteria andAdrdreleasetimeIn(List<String> values) {
            addCriterion("adrdReleaseTime in", values, "adrdreleasetime");
            return (Criteria) this;
        }

        public Criteria andAdrdreleasetimeNotIn(List<String> values) {
            addCriterion("adrdReleaseTime not in", values, "adrdreleasetime");
            return (Criteria) this;
        }

        public Criteria andAdrdreleasetimeBetween(String value1, String value2) {
            addCriterion("adrdReleaseTime between", value1, value2, "adrdreleasetime");
            return (Criteria) this;
        }

        public Criteria andAdrdreleasetimeNotBetween(String value1, String value2) {
            addCriterion("adrdReleaseTime not between", value1, value2, "adrdreleasetime");
            return (Criteria) this;
        }

        public Criteria andAdrddescribeIsNull() {
            addCriterion("adrdDescribe is null");
            return (Criteria) this;
        }

        public Criteria andAdrddescribeIsNotNull() {
            addCriterion("adrdDescribe is not null");
            return (Criteria) this;
        }

        public Criteria andAdrddescribeEqualTo(String value) {
            addCriterion("adrdDescribe =", value, "adrddescribe");
            return (Criteria) this;
        }

        public Criteria andAdrddescribeNotEqualTo(String value) {
            addCriterion("adrdDescribe <>", value, "adrddescribe");
            return (Criteria) this;
        }

        public Criteria andAdrddescribeGreaterThan(String value) {
            addCriterion("adrdDescribe >", value, "adrddescribe");
            return (Criteria) this;
        }

        public Criteria andAdrddescribeGreaterThanOrEqualTo(String value) {
            addCriterion("adrdDescribe >=", value, "adrddescribe");
            return (Criteria) this;
        }

        public Criteria andAdrddescribeLessThan(String value) {
            addCriterion("adrdDescribe <", value, "adrddescribe");
            return (Criteria) this;
        }

        public Criteria andAdrddescribeLessThanOrEqualTo(String value) {
            addCriterion("adrdDescribe <=", value, "adrddescribe");
            return (Criteria) this;
        }

        public Criteria andAdrddescribeLike(String value) {
            addCriterion("adrdDescribe like", value, "adrddescribe");
            return (Criteria) this;
        }

        public Criteria andAdrddescribeNotLike(String value) {
            addCriterion("adrdDescribe not like", value, "adrddescribe");
            return (Criteria) this;
        }

        public Criteria andAdrddescribeIn(List<String> values) {
            addCriterion("adrdDescribe in", values, "adrddescribe");
            return (Criteria) this;
        }

        public Criteria andAdrddescribeNotIn(List<String> values) {
            addCriterion("adrdDescribe not in", values, "adrddescribe");
            return (Criteria) this;
        }

        public Criteria andAdrddescribeBetween(String value1, String value2) {
            addCriterion("adrdDescribe between", value1, value2, "adrddescribe");
            return (Criteria) this;
        }

        public Criteria andAdrddescribeNotBetween(String value1, String value2) {
            addCriterion("adrdDescribe not between", value1, value2, "adrddescribe");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}